import request from '../util/request.js'

export function loadCategories(params={}) {
    return request({
        url:'categories',
        method:"GET",
        params:params
    });
}

export function loadCategoriesAttrs(id,params={}) {
    return request({
        url:`categories/${id}/attributes`,
        method:"GET",
        params:params
    });
}